package com.wontube.smr.web.client.model.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.wontube.client.modle.vo.PagenateInfo;
import com.wontube.client.modle.vo.PagenateSupport;
import com.wontube.smr.web.client.model.po.KeywordNocopy;

/**
 * @author tanggf(2012-7-10)
 *
 */
public class KeywordNocopyItems implements Serializable{
	private static final long serialVersionUID = 1L;

	private PagenateSupport pagenate = new PagenateSupport();
	private List<KeywordNocopy> items = new ArrayList<KeywordNocopy>();
	public KeywordNocopyItems() {		
	}
	
	public KeywordNocopyItems(PagenateInfo pageInfo) {		
		if(pageInfo != null){
			if(pageInfo.getPageSize() > PagenateSupport.maxPageSize){
				pageInfo.setPageSize(PagenateSupport.maxPageSize);
			}
			pagenate.setPagenateInfo(pageInfo);
		}
	}	
	
	public int getPageNo(){
		return pagenate.getPageNo();
	}
	
	public int getPageCount(){
		return pagenate.getPageCount();
	}
	
	public void setTotalCount(int total){
		pagenate.setTotalCount(total);
	}

	public List<KeywordNocopy> getItems() {
		return items;
	}

	public void setItems(List<KeywordNocopy> items) {
		this.items = items;
	}	
}
